import RequestComp from "containers/request/request";
import NewRequestComp from "containers/request/new-edit-request";
import JDRequestEditComp from "containers/request/jd-request-edit";
import RequestEditComp from "containers/request/new-edit-request";
import RequestDetailComp from "containers/request/base-request-detail";
import GiftRequestDatailComp from 'containers/request/gift-request-detail'

// 代理申请单
const agencyApplication = {
    key:'agency-application',
    url: '/main/applications/agency-application',
    components: RequestComp,
    icon: 'file-unknown',
    company: true,
    children: {
        //新建申请单
        newRequest: {
          key: 'new-agency-application',
          url: '/main/applications/agency-application/new-agency-application/:formOID/:applicantOID/:jobId',
          components: NewRequestComp,
          parent: 'agency-application'
        },
        //京东申请单编辑
        jdRequestEdit: {
          key: 'jd-agency-application-edit',
          url: '/main/applications/agency-application/jd-agency-application-edit/:formOID/:applicationOID',
          components: JDRequestEditComp,
          parent: 'agency-application'
        },
        //编辑申请单
        requestEdit: {
          key: 'agency-application-edit',
          url: '/main/applications/agency-application/agency-application-edit/:formOID/:applicationOID',
          components: RequestEditComp,
          parent: 'agency-application'
        },
        //申请单详情
        requestDetail: {
          key: 'agency-application-detail',
          url: '/main/applications/agency-application/agency-application-detail/:formOID/:applicationOID/:pageFrom',
          components: RequestDetailComp,
          parent: 'agency-application'
        },
        // 礼品申请单详情
        giftRequestDatail: {
          key: 'agency-application-giftDetail',
          url: '/main/applications/agency-application/agency-application-giftDetail/:formOID/:applicationOID/:id',
          components: GiftRequestDatailComp,
          parent: 'agency-application'
        }
      }
}

export default agencyApplication